package es.unex.meigas.dataObjects;

/**
 * This class represents a raster layer and one of its bands
 * @author volaya
 *
 */
public class RasterLayerAndBand {

	private IRasterLayer m_RasterLayer;
	private int m_iBand;

	public RasterLayerAndBand(IRasterLayer layer, int iBand) {

		m_RasterLayer = layer;
		m_iBand = iBand;

	}

	public int getBand() {

		return m_iBand;

	}
	public void setBand(int band) {

		m_iBand = band;

	}

	public IRasterLayer getRasterLayer() {

		return m_RasterLayer;
	}

	public void setRasterLayer(IRasterLayer rasterLayer) {

		m_RasterLayer = rasterLayer;

	}

	public String toString(){

		return m_RasterLayer.getName() + "," + Integer.toString(m_iBand + 1);

	}

}
